package com.yiyuan.weixin.utils;

/**
 * Created by admin on 2017/3/22.
 */

//消息结构
    @Deprecated
public class MessageFormat {
    public static final String  TEXTFORMAT33 = "<xml>\n" + "<Encrypt><![CDATA[%1$s]]></Encrypt>\n"
            + "<MsgSignature><![CDATA[%2$s]]></MsgSignature>\n"
            + "<TimeStamp>%3$s</TimeStamp>\n" + "<Nonce><![CDATA[%4$s]]></Nonce>\n" + "</xml>";

    public static final String  TEXTFORMAT = "<xml>\n"
            +"<ToUserName><![CDATA[%1$s]]></ToUserName>\n"
            +"<FromUserName><![CDATA[%2$s]]></FromUserName>\n"
            +"<CreateTime>%3$s</CreateTime>\n"
            +"<MsgType><![CDATA[%4$s]]></MsgType>\n"
            +"<Content><![CDATA[%5$s]]></Content>\n"
            +"</xml>";

    public static final String  IMAGEFORMAT="<xml>\n"
          +"<ToUserName><![CDATA[%1$s]]></ToUserName>\n"
          +"<FromUserName><![CDATA[%2$s]]></FromUserName>\n"
          +"<CreateTime>%3$s</CreateTime>\n"
          +"<MsgType><![CDATA[%4$s]]></MsgType>\n"
          +"<Image>\n"
          +"<MediaId><![CDATA[%5$s]]></MediaId>\n"
          +"</Image>\n"
          +"</xml>";

    public static final String  VOICEFORMAT = "<xml>\n"
           +"<ToUserName><![CDATA[%1$s]]></ToUserName>\n"
           +"<FromUserName><![CDATA[%2$s]]></FromUserName>\n"
           +"<CreateTime>%3$s</CreateTime>\n"
           +"<MsgType><![CDATA[%4$s]]></MsgType>\n"
           +"<Voice>\n"
           +"<MediaId><![CDATA[%5$s]]></MediaId>\n"
           +"</Voice>\n"
           +"</xml>";

    public static final String VIDEOFORMAT= "<xml>\n"
            + "<ToUserName><![CDATA[%1$s]]></ToUserName>\n"
            + "<FromUserName><![CDATA[%2$s]]></FromUserName>\n"
            + "<CreateTime>%3$s</CreateTime>\n"
            + "<MsgType><![CDATA[%4$s]]></MsgType>\n"
            + "<Video>\n"
            + "<MediaId><![CDATA[%5$s]]></MediaId>\n"
            + "<Title><![CDATA[%6$s]]></Title>\n"
            + "<Description><![CDATA[%7$s]]></Description>\n"
            + "</Video> \n"
            + "</xml>";
    public static final String  MUSICFORMAT= "<xml>\n"
            +"<ToUserName><![CDATA[%1$s]]></ToUserName>\n"
            +"<FromUserName><![CDATA[%2$s]]></FromUserName>\n"
            +"<CreateTime>%3$s</CreateTime>\n"
            +"<MsgType><![CDATA[%4$s]]></MsgType>\n"
            +"<Music>\n"
            +"<Title><![CDATA[%5$s]]></Title>\n"
            +"<Description><![CDATA[%6$s]]></Description>\n"
            +"<MusicUrl><![CDATA[%7$s]]></MusicUrl>\n"
            +"<HQMusicUrl><![CDATA[%8$s]]></HQMusicUrl>\n"
            +"<ThumbMediaId><![CDATA[%9$s]]></ThumbMediaId>\n"
            +"</Music>\n"
            +"</xml>";

    public static final String  NEWSFORMAT_BEFORE= "<xml>\n"
            +"<ToUserName><![CDATA[%1$s]]></ToUserName>\n"
            +"<FromUserName><![CDATA[%2$s]]></FromUserName>\n"
            +"<CreateTime>%3$s</CreateTime>\n"
            +"<MsgType><![CDATA[%5$s]]></MsgType>\n"
            +"<ArticleCount>%6$s</ArticleCount>\n"
            +"<Articles>\n";

    public static final String  NEWSFORMAT_ITEM=
            "<item>\n"
           +"<Title><![CDATA[%1$s]]></Title>\n"
           +"<Description><![CDATA[%2$s]]></Description>\n"
           +"<PicUrl><![CDATA[%3$s]]></PicUrl>\n"
           +"<Url><![CDATA[%4$s]]></Url>\n"
           +"</item>\n";

    public static final String  NEWSFORMAT_AFTER=
            "</Articles>\n"
            + "</xml>";

}

